add in just enough support for 1 or 4 bits so that it seems to allow
authorCDT 1998 Shawn T. Amundson <amundson@gtk.org>
Fri, 10 Jul 1998 02:09:10 +0000 (02:09 +0000)
committerShawn Amundson <amundson@src.gnome.org>
Fri, 10 Jul 1998 02:09:10 +0000 (02:09 +0000)
Thu Jul  9 21:03:19 CDT 1998 Shawn T. Amundson <amundson@gtk.org>

        * gtk/gtkpreview.c: add in just enough support for 1 or 4 bits
  so that it seems to allow normal operation in those modes,
  although you will only see black.  1 bit untested

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkpreview.c

index bd9a39b796e736995056de76035092cdee967cc1..4f8cc96116cf2ce9488477937560190a8dd607a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Thu Jul  9 21:03:19 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * gtk/gtkpreview.c: add in just enough support for 1 or 4 bits
+         so that it seems to allow normal operation in those modes,
+         although you will only see black  (GIMP toolbar now pops up,
+         just don't create a new image and GIMP now works in 4 bit.)
+
 Thu Jul  9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * gdk/gdkvisuals.c: 4 bit support, increased available_depths
index bd9a39b796e736995056de76035092cdee967cc1..4f8cc96116cf2ce9488477937560190a8dd607a9 100644 (file)
@@ -1,3 +1,10 @@
+Thu Jul  9 21:03:19 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * gtk/gtkpreview.c: add in just enough support for 1 or 4 bits
+         so that it seems to allow normal operation in those modes,
+         although you will only see black  (GIMP toolbar now pops up,
+         just don't create a new image and GIMP now works in 4 bit.)
+
 Thu Jul  9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * gdk/gdkvisuals.c: 4 bit support, increased available_depths
index bd9a39b796e736995056de76035092cdee967cc1..4f8cc96116cf2ce9488477937560190a8dd607a9 100644 (file)
@@ -1,3 +1,10 @@
+Thu Jul  9 21:03:19 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * gtk/gtkpreview.c: add in just enough support for 1 or 4 bits
+         so that it seems to allow normal operation in those modes,
+         although you will only see black  (GIMP toolbar now pops up,
+         just don't create a new image and GIMP now works in 4 bit.)
+
 Thu Jul  9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * gdk/gdkvisuals.c: 4 bit support, increased available_depths
index bd9a39b796e736995056de76035092cdee967cc1..4f8cc96116cf2ce9488477937560190a8dd607a9 100644 (file)
@@ -1,3 +1,10 @@
+Thu Jul  9 21:03:19 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * gtk/gtkpreview.c: add in just enough support for 1 or 4 bits
+         so that it seems to allow normal operation in those modes,
+         although you will only see black  (GIMP toolbar now pops up,
+         just don't create a new image and GIMP now works in 4 bit.)
+
 Thu Jul  9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * gdk/gdkvisuals.c: 4 bit support, increased available_depths
index bd9a39b796e736995056de76035092cdee967cc1..4f8cc96116cf2ce9488477937560190a8dd607a9 100644 (file)
@@ -1,3 +1,10 @@
+Thu Jul  9 21:03:19 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * gtk/gtkpreview.c: add in just enough support for 1 or 4 bits
+         so that it seems to allow normal operation in those modes,
+         although you will only see black  (GIMP toolbar now pops up,
+         just don't create a new image and GIMP now works in 4 bit.)
+
 Thu Jul  9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * gdk/gdkvisuals.c: 4 bit support, increased available_depths
index bd9a39b796e736995056de76035092cdee967cc1..4f8cc96116cf2ce9488477937560190a8dd607a9 100644 (file)
@@ -1,3 +1,10 @@
+Thu Jul  9 21:03:19 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * gtk/gtkpreview.c: add in just enough support for 1 or 4 bits
+         so that it seems to allow normal operation in those modes,
+         although you will only see black  (GIMP toolbar now pops up,
+         just don't create a new image and GIMP now works in 4 bit.)
+
 Thu Jul  9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * gdk/gdkvisuals.c: 4 bit support, increased available_depths
index bd9a39b796e736995056de76035092cdee967cc1..4f8cc96116cf2ce9488477937560190a8dd607a9 100644 (file)
@@ -1,3 +1,10 @@
+Thu Jul  9 21:03:19 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * gtk/gtkpreview.c: add in just enough support for 1 or 4 bits
+         so that it seems to allow normal operation in those modes,
+         although you will only see black  (GIMP toolbar now pops up,
+         just don't create a new image and GIMP now works in 4 bit.)
+
 Thu Jul  9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * gdk/gdkvisuals.c: 4 bit support, increased available_depths
index 2aa3d0b13c2bcdd680438f1381fc356553bb0e52..713db2b57098cd8f7dd59586d44865d8d83dec19 100644 (file)
@@ -831,9 +831,11 @@ gtk_preview_get_visuals (GtkPreviewClass *klass)
     GDK_VISUAL_DIRECT_COLOR,
     GDK_VISUAL_TRUE_COLOR,
     GDK_VISUAL_DIRECT_COLOR,
-    GDK_VISUAL_PSEUDO_COLOR
+    GDK_VISUAL_PSEUDO_COLOR,
+    GDK_VISUAL_STATIC_COLOR,
+    GDK_VISUAL_STATIC_GRAY
   };
-  static gint depths[] = { 24, 24, 32, 32, 16, 16, 15, 15, 8 };
+  static gint depths[] = { 24, 24, 32, 32, 16, 16, 15, 15, 8, 4, 1 };
   static gint nvisual_types = sizeof (types) / sizeof (types[0]);
 
   int i;
@@ -887,6 +889,8 @@ gtk_preview_get_visuals (GtkPreviewClass *klass)
     
   switch (klass->info.visual->depth)
     {
+    case 1:
+    case 4:
     case 8:
       klass->info.bpp = 1;
       break;